#pragma once

class GDraw
{
public:
	GDraw();
	~GDraw();
	void Stop();
	static GDraw& Inst();
	bool	Init(HDC hDC);
	void	LoadResource();
	void DrawDebugInfor();
	void ReshapeFunc(int new_width, int new_height);
	void DisplayWork();
	void InitOpenGL();
protected:
	int			m_nWndWidth;
	int			m_nWndHeight;
	bool		m_bActive;		// Window Active Flag Set To TRUE By Default
	HDC			m_hDC;		// Private GDI Device Context
	HGLRC		m_hRC;		// Permanent Rendering Context
	HWND		m_hWnd;		// Holds Our Window Handle
	HINSTANCE	m_hInstance;// Holds The Instance Of The Application
private:
	wstring		m_strText;
	HANDLE		m_hDisplayThread;
	bool		m_bRun;
	HANDLE		m_hRunEvent;
};